/*
 * @Description: 数据库接口
 * @Author: qingyang
 * @Date: 2022-02-18 16:48:04
 * @LastEditors: qingyang
 * @LastEditTime: 2023-06-29 17:17:08
 */
import { get } from '@/utils/http';
import { IFactorListParams, RelationFactorListResult } from './model/factorListModel';
import { BasicPagingListResult } from '@/apis/basicModel';
// 因子库
const factor = {
  // 因子库列表分页查询
  factorList: (params: IFactorListParams) => get(`footprint/factor/getPageFactor`, params),
  // 关联因子查询
  relationFactorList: (
    params: IFactorListParams
  ): Promise<BasicPagingListResult<RelationFactorListResult>> =>
    get(`footprint/factor/getRelationFactor`, params)
};
export const relationFactorList = (
  params: IFactorListParams
): Promise<BasicPagingListResult<RelationFactorListResult>> =>
  get(`footprint/factor/getRelationFactor`, params);
export default {
  ...factor
};
